<template>
  <div id="app">
    <div v-if="isShow">
      <van-skeleton title :row="6" />
    </div>
    <router-view v-else></router-view>
  </div>
</template>

<script setup>
import { useRoute, useRouter } from 'vue-router'
const router = useRouter()
const route = useRoute()

import { ref, watch } from "vue"

let isShow = ref(true)

watch(() => route.path, () => {
  isShow.value = true
  setTimeout(() => {
    isShow.value = false
  }, 300);
})

</script>

<style lang="scss" scoped></style>